<template>
  <div class="tool-bar">
    <div class="mode" v-if="multiSelection.length == 0">
      <slot name="unselect" />
    </div>
    <div class="mode" v-else>
      <slot name="select" />
    </div>
  </div>
</template>

<script>
export default {
  name: "tool-bar",
  props:{
    multiSelection: {
      type: Array,
      default() {
        return []
      }
    }
  }
}
</script>

<style scoped lang="less">
.tool-bar {
  height: 50px;
  display: flex;
  align-items: center;
  padding: 0 15px;
  background: #f9fafc;
  border-bottom: 1px solid #e9e9e9;

  .mode {
    width: 100%;
  }
}
</style>
